package com.zzw.spring.component;

import com.zzw.spring.annotation.Component;
import com.zzw.spring.processor.InitializingBean;

@Component(value = "monsterDao")
public class MonsterDao implements InitializingBean {


    public void hi(){
        System.out.println("MonsterDao-hi()");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("MonsterDao初始化方法被调用，在这里程序员可以添加上自己的逻辑/业务");
    }
}
